/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package systole.persistence.brokersInterface;

import java.util.List;
import systole.domain.clinicalInformation.Family;
import systole.exceptions.ExceptionDAO;
import systole.synchronization.remote.entities.FamilyRemote;

/**
 *
 * @author Juan Manuel
 */
public interface FamilySyncBroker {
    /**
     * 
     * @param familyRemote
     * @throws ExceptionDAO 
     */
    public void saveFamilyRemote(FamilyRemote familyRemote) throws ExceptionDAO;   

    /**
     * 
     * @return FamilyRemote list
     * @throws ExceptionDAO 
     */
    public List<FamilyRemote> getFamiliesToUpdate() throws ExceptionDAO;

    /**
     * 
     * @return
     * @throws ExceptionDAO 
     */
    public List<Family> getFamiliesToUpload() throws ExceptionDAO;

    /**
     *
     * @param remoteId
     * @return
     * @throws ExceptionDAO
     */
    public Family getFamilyByRemoteId(int remoteId) throws ExceptionDAO;

    /**
     *
     * @param family
     * @return
     * @throws ExceptionDAO
     */
    public FamilyRemote getFamilyRemoteByFamily(Family family) throws ExceptionDAO;

    /**
     * 
     * @return
     * @throws ExceptionDAO 
     */
     public int getLastRemoteFamilyIdSynchronized() throws ExceptionDAO;
}
